﻿/*
 * ImageGallery 
 * An ASP.NET control for publishing Image Galleries on the web.
 * Copyright (C) 2008 Imesh Gunaratne
 * http://code.google.com/p/imagegallery
 * 
 * This file is part of ImageGallery.
 *
 * ImageGallery is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * ImageGallery is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with ImageGallery.  If not, see <http://www.gnu.org/licenses/>.
 * 
 * History: 2008/10/07 Created.
 *          
 */

using System.Threading;

namespace ImageGallery
{
    public class ThreadManager
    {
        #region Private Static Attributes
        private static Thread threadUpdateFlickrImageCache;
        #endregion

        #region Public Static Methods
        public static void UpdateFlickrImageCache()
        {
            threadUpdateFlickrImageCache = new Thread(FlickrCache.UpdateFlickrImageCache);
            threadUpdateFlickrImageCache.Start();
        }

        public static void Abort()
        {
            threadUpdateFlickrImageCache.Abort();
        }
        #endregion
    }
}
